package com.budwk.app.sys.services;

import com.budwk.app.sys.vo.LinuxServiceLayConfigVo;
import com.budwk.starter.common.result.Result;
import com.budwk.starter.database.service.BaseService;
import com.budwk.app.sys.models.LinuxServiceLayConfig;
import com.jcraft.jsch.Session;
import org.nutz.mvc.upload.TempFile;

import java.io.File;

public interface LinuxServicelayConfigService extends BaseService<LinuxServiceLayConfig>{

    Session getJSchSession(LinuxServiceLayConfig config);

    boolean uploadFile(Session sshSession, File uploadFile, String linuxServiceLayConfigId, String backFileName, String uploadFileName);

    Result<?> listConfigByPage(LinuxServiceLayConfigVo layVo);

    Result<?> addConfigInfo(LinuxServiceLayConfig layVo);

    Result<?> updateConfigInfo(LinuxServiceLayConfig layVo);

    void executeShell(Session session, String cmds);
}
